import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';

import {DepartmentsComponent} from '@core/baseModule/departments/departments.component';
import {DepartmentsListComponent} from '@core/baseModule/departments/departments-list/departments-list.component';


const routes: Routes = [
  {
    path: '',
    component: DepartmentsComponent,
    children: [
      { path: '', redirectTo: 'departments-list', pathMatch: 'full' },
      {path: 'departments-list', component: DepartmentsListComponent}
    ]
  }
];

@NgModule({
  imports: [CommonModule, RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DepartmentsRoutingModule {}
